package com.oschat;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @Description 主启动类
 * @Classname OpenSourceChatApplication
 * @Date 2024/10/27 21:15
 * @Created by panda
 */
@EnableAsync
@SpringBootApplication(scanBasePackages = {"com.oschat"})
@MapperScan(basePackages = {"com.oschat.mappers"})
@EnableTransactionManagement
@EnableScheduling
public class OpenSourceChatApplication {
    public static void main(String[] args) {
        SpringApplication.run(OpenSourceChatApplication.class,args);
    }
}
